home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.bc.net!news!news
- From: rmcouat@dowco.com (Ron McOuat)
- Subject: Re: Will JAVA kill C++?
- Sender: news@dowco.com
- Message-ID: <DoI1Gw.BF3@dowco.com>
- Date: Tue, 19 Mar 1996 05:18:44 GMT
- References: <313E44EA.14D110C0@netcom.com> <4hp18v$3di@frodo.smartlink.net> <4hq2j6$q93@galaxy.ucr.edu> <4ie2m7$5re@hn.ocbbs.gen.nz>
- Nntp-Posting-Host: ppp41.dowco.com
- Organization: Dowco Computer System Ltd.
- X-Newsreader: Forte Free Agent 1.0.82
-
- steve@hn.ocbbs.gen.nz (Steve Detoni) wrote:
-
-
- [snip]
- >: : Java main advantage, and a large advantage it is, will be complete
- >: : cross-platform compatibility. Meaning any JAVA program will run on any
- >: : machine which has an interpreter programmed for it.
-
- >: Just like C++, no? Either language can be compiled into an
- >: efficiently interpretable pseudo-code. Perhaps, someone will retarget
- >: g++ to the JAVA pseudo-machine, just to prove the point.
- >I had a look at JAVA within a book at a book store, at first glance I
- >thought it was c++, and could find little difference between the two
- >syntaxitly in the what code saw. Why would anyone re-event a langauge
- >(i.e. C)?
-
-
- >Steve.
-
- The point is JAVA is a byte code interpreter. The compiler takes the
- source and converts it to an architecture independent format that is
- then passed to another machine. The client machine which executes the
- code will interpret the byte codes and produce the right output on a
- possibly different architecture. The low level access provided by C
- and C++ would be difficult to implement in an architecture independent
- interpreter.
-
- This is not exactly new - P-code interpreters were a common Pascal
- implementation 15 years ago and are based on similar ideas as are some
- implementations of LISP. It just has wide scale acceptance and a
- perfect application in Web server - browser interactions. As far as
- efficiency is concerned - that depends on the application. I don't
- think I would want to use JAVA for numerical analysis for example.
-
-